const express = require('express');
const router = express.Router();

import { dologin,selectuser,getuserinfo,selectcptt,getcpttinfo } from '@controllers/spad/oper'

// 验证
import { superAdminVerify } from '@utils/middleware'
router.use(superAdminVerify)

router.post('/dologin',dologin)

router.get('/selectuser',selectuser)

router.get('/getuserinfo',getuserinfo)

router.get('/selectcptt',selectcptt)

router.get('/getcpttinfo',getcpttinfo)

router.get('/test',(req, res)=>{  
  res.send({test:'success'})
})

module.exports = router